{include file="header.tpl"}

<div id="main" class="main">
<div><b>Edit your details</b></div>

{if $error}
	<div class="error">
		<b>Sorry, something went wrong here</b>
		<ul>
			<li>{$error}</li>
		</ul>
	</div>
{/if}

{if $success}
	<div class="success">
		<b>Good News</b>
		<ul>
			<li>{$success}</li>
		</ul>
	</div>
{/if}

<form method="post">
<table>
<tr>
    <td>Username</td>
		<td><input type="text" name="username" value="{$details.username}" disabled="disabled"></td>
</tr>
<tr>
		<td>Email</td>
		<td><input type="text" name="email" value="{$details.email}"></td>
</tr>
<tr>
		<td>Phone Number</td>
		<td><input type="text" name="phone" value="{$details.phone}"></td>
</tr>
<tr>
		<td>Carrier</td>
		<td><input type="text" name="carrier" value="{$details.carrier}"></td>
</tr>
<tr>
		<td>Likes</td>
		<td><input type="text" name="likes" value="{$details.likes}"></td>
</tr>
<tr>
		<td>Dislikes</td>
		<td><input type="text" name="dislikes" value="{$details.dislikes}"></td>
</tr>
</table>

<p><b>Change your password</b>
<br /><span style="font-size: 10px;">(Or leave these blank to keep the one you've got now)</span></p>

<table>
<tr>
		<td>Password</td>
		<td><input type="password" name="password"></td>
</tr>
<tr>
		<td>Confirm Password</td>
		<td><input type="password" name="password2"></td>
</tr>
<tr>
		<td colspan="2">
			<input type="submit" name="submit" value="Update Details">
		</td>
</tr>
</table>
</form>
</div>

{include file="footer.tpl"}
